package com.zb.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author WEN
 * @Date 2023/7/10 0010
 **/
@Data
@ApiModel(value = "账号信息实体封装")
public class AdmInfo implements Serializable {
    @Serial
    private static final long serialVersionUID = 6687236811902487034L;

    @ApiModelProperty(value = "账号ID")
    private Long id;

    @ApiModelProperty(value = "登录账号")
    private String account;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "用户名称")
    private String name;

    @ApiModelProperty(value = "记住我：true-是，false-否")
    private boolean rememberMe = false;

    @ApiModelProperty(value = "登录设备")
    private String device;

    private AdmInfo() {}

    public AdmInfo(Long id, String account, String phone, String name, boolean rememberMe, String device) {
        this.id = id;
        this.account = account;
        this.phone = phone;
        this.name = name;
        this.rememberMe = rememberMe;
        this.device = device;
    }
}
